package tech.yiyehu.modules.bss.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import tech.yiyehu.common.utils.PageUtils;
import tech.yiyehu.common.utils.Query;

import tech.yiyehu.modules.bss.dao.DietRecordsDao;
import tech.yiyehu.modules.bss.entity.DietRecordsEntity;
import tech.yiyehu.modules.bss.service.DietRecordsService;


@Service("dietRecordsService")
public class DietRecordsServiceImpl extends ServiceImpl<DietRecordsDao, DietRecordsEntity> implements DietRecordsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<DietRecordsEntity> page = this.selectPage(
                new Query<DietRecordsEntity>(params).getPage(),
                new EntityWrapper<DietRecordsEntity>()
        );

        return new PageUtils(page);
    }

}
